<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
  '<div contenteditable>|</div>',
  selection => {
    selection.setClipboardData('foo\0bar');
    selection.document.execCommand("paste");
  },
  '<div contenteditable>foobar|</div>',
  'NULL characters should not be copied');
</script>
